package client

import (
	"fmt"
	"google.golang.org/grpc"
	user1 "online-retailers/internal/proto/user"
)

func UserClient() user1.RegisterServerClient {
	conn, err := grpc.Dial("127.0.0.1:50051", grpc.WithInsecure())
	if err != nil {
		fmt.Printf("连接异常： %s\n", err)
	}
	return user1.NewRegisterServerClient(conn)
}
